{{include file="default/Public/header.html"}}
<form id="myform" name="myform" method="post" action='{{U url="factivity/manage_apply"}}'  >
<div id="pageTop">
	<div class="addBtn"><a href='{{U url="factivity/add_apply?catid=`$cat.catid`&aid=`$in.aid`"}}'>添加报名信息</a></div>
	<div class="cate">
      <a href='{{U url="factivity/manage_apply?catid=`$cat.catid`&aid=`$in.aid`"}}' class="selected">报名信息管理</a>|
      <a href='{{U url="factivity/manage?catid=`$cat.catid`"}}'>&lt;&lt;返回活动列表</a>
	</div>
	<div class="batch">
		
	</div>
	<div class="search">
		<select name='field'>
          <option value='title'>姓名</option>          
          <option value='tel'>电话</option>          
          <option value='qq'>QQ</option>          
          <option value='email'>邮件</option>          
        </select>
        <input type="text" name="q" onblur="if (value ==''){value='请输入关键字'}" onfocus="if (value =='请输入关键字'){value =''}" value="请输入关键字"/>
        <button type="submit"></button>
	</div>
</div>
<div id="pageCo">
	<div class="listForm">
		<table cellpadding="0" cellspacing="0">
			<thead>
				<tr>
					<th width="30">ID</th>
					<th width="80">姓名</th>
					<th width="120">电话</th>
					<th width="120">报名时间</th>
					<th>留言</th>
					<th width="80">操作</th>
				</tr>
			</thead>
			<tbody>
			{{foreach from=$data.info item=v}}      
		      <tr>		        
		        <td>{{$v.mid|intval}}</td>
		        <td>{{$v.name}}</td>
		        <td>{{$v.tel}}</td>
		        <td>{{'Y-m-d H:i'|date:$v.create_time}}</td>
		        <td>{{$v.message}}</td>		        
		        <td>
		          <a href='{{U url="factivity/edit_apply?mid=`$v.mid`&catid=`$cat.catid`&aid=`$v.aid`"}}' title="更新内容">修改</a> |
		          <a href='{{U url="factivity/delete_apply?mid=`$v.mid`&catid=`$cat.catid`&aid=`$v.aid`"}}' title="删除报名信息" onclick="return window.confirm('删除后无法恢复！')">删除</a>
		        </td>
		      </tr>
		      {{foreachelse}}
		      <tr><td colspan="7">暂无记录！</td></tr>
		      {{/foreach}}
			</tbody>
		</table>	
	</div>	
	<div class="pageList">
	    <div>
<!--	    <span><input type="button" name="" onclick="alert('test');" value="删除"/></span>-->
	    {{$data.pages}}
	    </div>		
		<ul class="clearit"></ul> 
	</div>
</div>
<input type="hidden" name="info[aid]" value="{{$in.aid}}" />
</form>
{{include file="default/Public/footer.html"}}